home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / dc-0_2.lha / dc-0.2 / Makefile.in < prev    next >
Makefile  |  1993-05-20  |  3KB  |  122 lines

  1. # Makefile for GNU dc.    -*- Indented-Text -*-
  2. # Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24.  
  25. INSTALL = @INSTALL@
  26. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  27. INSTALL_DATA = @INSTALL_DATA@
  28.  
  29. DEFS = @DEFS@
  30. LIBS = @LIBS@
  31.  
  32. CFLAGS = -g
  33. LDFLAGS = -g
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37.  
  38. bindir = $(exec_prefix)/bin
  39. datadir = $(prefix)/lib
  40. libdir = $(prefix)/lib
  41. infodir = $(prefix)/info
  42.  
  43. # Where to install the manual pages.
  44. mandir = $(prefix)/man/man1
  45. # Extension (not including `.') for the installed manual page filenames.
  46. manext = 1
  47.  
  48. #### End of system configuration section. ####
  49.  
  50. SHELL = /bin/sh
  51.  
  52. LOADLIBES = $(LIBS) -lm
  53.  
  54. DISTFILES = COPYING ChangeLog INSTALL Makefile.in NEWS README configure \
  55.             configure.in dc.c dc.info dc.texinfo decimal.c decimal.h \
  56.             texinfo.tex
  57.  
  58. DISTNAME = dc-0.2
  59.  
  60. all: dc
  61.  
  62. .c.o:
  63.     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  64.  
  65. ### targets required by GNU Coding standards ###
  66.  
  67. Makefile: Makefile.in config.status
  68.     ./config.status
  69.  
  70. config.status: configure
  71.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  72.  
  73. configure: configure.in
  74.     cd $(srcdir); autoconf
  75.  
  76. TAGS:
  77.     cd $(srcdir); etags *.c *.h
  78.  
  79. clean:
  80.     rm -f *.o core a.out dc
  81.  
  82. mostlyclean: clean
  83.  
  84. distclean: clean
  85.     rm -f Makefile config.status
  86.  
  87. realclean: distclean
  88.     rm -f TAGS dc.info* configure
  89.  
  90. dist: $(DISTFILES)
  91.     rm -rf $(DISTNAME)
  92.     mkdir $(DISTNAME)
  93.     ln $(DISTFILES) $(DISTNAME)
  94.     tar --gzip -chf $(DISTNAME).tar.z $(DISTNAME)
  95.     rm -rf $(DISTNAME)
  96.  
  97. install: all
  98.     $(INSTALL_PROGRAM) dc $(bindir)/dc
  99.     -if test -f dc.info ; then d=.; else d=$(srcdir) ; fi; \
  100.      $(INSTALL) $${d}/dc.info $(infodir)/dc.info
  101.  
  102. uninstall: force
  103.     rm -f $(bindir)/dc
  104.     rm -f $(infodir)/dc.info
  105.  
  106. ### Actual dc-specific targets ###
  107.  
  108. dc.o: dc.c decimal.h
  109. decimal.o: decimal.c decimal.h
  110.  
  111. dc: dc.o decimal.o
  112.     $(CC) $(LDFLAGS) -o dc dc.o decimal.o $(LOADLIBES)
  113.  
  114. dc.info: dc.texinfo
  115.     makeinfo -I$(srcdir) --no-split dc.texinfo
  116.  
  117. dc.dvi: dc.texinfo
  118.     texi2dvi $(srcdir)/dc.texinfo
  119.  
  120. # Prevent GNU make v3 from overflowing arg limit on SysV.
  121. .NOEXPORT:
  122.